package com.wu.pojo.response.sys;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wu.pojo.response.CommonIdNameResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel
@Data
public class UserListResponse {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "账号名字")
    private String username;

    /**
     * 真实姓名
     */
    @ApiModelProperty(value = "真实姓名")
    private String realName;


    @ApiModelProperty(value = "性别，0 未知，1男 ，2女")
    private Integer gender;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    private String phone;

    /**
     * 身份证号
     */
    @ApiModelProperty(value = "身份证号")
    private String idCard;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    private String portrait;


    /**
     * 住址
     */
    @ApiModelProperty(value = "住址")
    private String address;

    /**
     * 户籍地
     */
    @ApiModelProperty(value = "户籍地")
    private String householdRegister;

    @ApiModelProperty(value = "户籍地code")
    private String householdRegisterCode;
    @ApiModelProperty(value = "住址code")
    private String addressCode;

    /**
     * 入职日期
     */
    @ApiModelProperty(value = "入职日期 格式yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd")
    private java.sql.Date recruitDate;

    @ApiModelProperty(value = "部门id")
    private Long departmentId;
    @ApiModelProperty(value = "部门名称")
    private String departmentName;

    @ApiModelProperty(value = "职位集合")
    private List<CommonIdNameResponse> positionList;

    @ApiModelProperty(value = "角色集合")
    private List<CommonIdNameResponse> roleList;

    @ApiModelProperty(value = "直属上级id")
    private Long superiorId;
}
